package com.yang.springcloudalibaba.service;

import com.yang.springcloud.pojo.Menu;

import java.util.Map;

public interface MenuService {
    public Map<String, Object> queryMenu(int menuid);

    public Map<String, Object> queryRoleMenu(int menuid, int roleid);

    public Map<String, Object> insertRoleMenu(int roleid, Menu menu);

    public Map<String, Object> queryRoleMenuAsync(int menuid, int roleid) throws InterruptedException;

    public Map<String, Object> insertRoleMenuAsync(int roleid, Menu menu) throws InterruptedException;

}
